package com.sunwayhorizo.health.hl7.persistent.pk;

import java.io.Serializable;

public class RimCoreActPrtcptnsPK implements Serializable {
//    public Long actVersionNum;
    public Long participationId;
//    public Long roleVersionNum;

    public RimCoreActPrtcptnsPK() {
    }

    public RimCoreActPrtcptnsPK(Long actVersionNum, Long participationId, 
                         Long roleVersionNum) {
//        this.actVersionNum = actVersionNum;
        this.participationId = participationId;
//        this.roleVersionNum = roleVersionNum;
    }

    public boolean equals(Object other) {
        if (other instanceof RimCoreActPrtcptnsPK) {
            final RimCoreActPrtcptnsPK otherActPrtcptnsPK = (RimCoreActPrtcptnsPK)other;
            final boolean areEqual = 
                (
//                		otherActPrtcptnsPK.actVersionNum.equals(actVersionNum) && 
                 otherActPrtcptnsPK.participationId.equals(participationId) 
//                 && otherActPrtcptnsPK.roleVersionNum.equals(roleVersionNum)
                 );
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }
}
